import { attrDefine } from "../../../../../defines/attr_define";
import { elementDefine } from "../../../../../defines/element_define";
import { WeaponTypeDefine } from "../../../../../defines/equip_define";
import { GoodTypeDefine } from "../../../../../defines/good_type";
import { LimbsTypeDefine } from "../../../../../defines/people_limbs";
import { humanRace } from "../../../../../defines/race_define";
import { WeaponGood } from "../../../../goods-control/weapon_good";

/**
 * 铁剑
 */
export default class GoodNode extends WeaponGood {
	constructor(...params) {
		super(...params);
	}

	getTitle() {
		return "铁匕首";
	}

	getDesc() {
		return "一把平平无奇的铁匕首。";
	}

	getNeedAttr() {
		return {
			[attrDefine.blood.key]: 2,
		};
	}

	getIsEquip() {
		return [
			LimbsTypeDefine.hand
		];
	}

	getWeaponType(){
		return WeaponTypeDefine.dagger;
	}

	getDefaultAttr() {
		return {
			[attrDefine.element.key]: [elementDefine.gold.key],
			[attrDefine.weight.key]: 2,
			[attrDefine.durable.key]: 30,
			[attrDefine.bloodAtk.key]: 10,
      [attrDefine.action.key]: .5
		};
	}
}